import axios from 'axios';
import service from '../request/';

const controller = "Business"

/**
* 
分页
* @param {*} data 
* @returns 
*/
function query(data : any) {
	return service({
		method: 'get',
		url: controller + '/query',
		params: data,
	})
}

/**
* select查找
* @param {*} data 
* @returns 
*/
function select(data : any) {
	return service({
		method: 'get',
		url: controller + '/select',
		params: data,

	})
}
function getyi(data : any) {
	return service({
		method: 'get',
		url: controller + '/getyi',
		params: data
	})
}

function get(data : any) {
	return service({
		method: 'get',
		url: controller + '/get',
		params: data
	})
};
function Add(data : any) {
	return service({
		method: 'post',
		url: controller + '/Add',
		data:data
	})
};
function update(data : any) {
	return service({
		method: 'put',
		url: controller+'/Update',
		data:data
	})
}
function del(data : any) {
	return service({
		method: 'delete',
		url: controller,
		params: data
	})
}

export default {
	query,
	select,
	get,
	Add,
	update,
	del,
	getyi
}